﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace WarioOldies.Models
{
    public class Game
    {
        public bool IsChecked
        {
            get
            {
                return
             (
                 string.IsNullOrWhiteSpace(this.Label) == false &&
                 string.IsNullOrWhiteSpace(this.Id) == false &&
                 string.IsNullOrWhiteSpace(this.RomUri) == false
             );
            }
        }

        /// <summary>
        /// Machine
        /// </summary>

        public string Machine
        {
            get;
            set;
        }

        /// <summary>
        /// Label du jeux
        /// </summary>

        public string Label
        {
            get;
            set;
        }
        
        /// <summary>
        /// Id de la Rom
        /// </summary>

        public string Id
        {
            get;
            set;
        }

        /// <summary>
        /// Genre
        /// </summary>

        public string Genre
        {
            get;
            set;
        }

        /// <summary>
        /// Langue
        /// </summary>

        public string Language
        {
            get;
            set;
        }

        /// <summary>
        /// Dernière fois jouée
        /// </summary>

        public DateTime LastTimePlayed
        {
            get;
            set;
        }

        /// <summary>
        /// Série
        /// </summary>

        public string Serie
        {
            get;
            set;
        }

        /// <summary>
        /// Couverture frontal
        /// </summary>

        public string FrontCoverUri
        {
            get;
            set;
        }

        /// <summary>
        /// Rom part
        /// </summary>

        public string RomUri
        {
            get;
            set;
        }

        /// <summary>
        /// Description du jeux
        /// </summary>

        public string Description 
        { 
            get; 
            set; 
        }

        /// <summary>
        /// Petite description 's'appuie sur les 100 premières lettres de Description
        /// </summary>

        public string SmallDescription
        {
            get;
            set;
        }

        public string Publisher { get; set; }
    }
}
